<?php


define('ACCESS_KEY9296',true);
require('./include/init.php');

//$UploadFile = new UploadFile();


$mysql = mysql::getIns();
$res = $mysql->query("SELECT * FROM cake WHERE cake_up=0 ORDER BY cake_date DESC LIMIT 0,8;");


$a = 0;
while ($row = mysql_fetch_array($res, MYSQL_ASSOC)) {
       $img[$a]=$row['cake_images'];
       $id[$a]=$row['cake_id'];
       $price[$a]=$row['cake_price'];
       $a++;
   }



include(ROOT.'view/shop/header.html');
include(ROOT.'view/shop/shop.html');
include(ROOT.'view/shop/footer.html');